package com.chezai.client.adapter;

import android.support.annotation.LayoutRes;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.chezai.client.R;
import com.chezai.client.bean.TrainProjectEntity;

/**
 * 列表弹窗Adapter
 * Created by likunyang on 2017/9/20.
 */

public class ListDialogAdapter extends BaseQuickAdapter<TrainProjectEntity, BaseViewHolder> {

    public ListDialogAdapter(@LayoutRes int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(BaseViewHolder helper, TrainProjectEntity item) {
        helper.setText(R.id.tv_train_part, item.getProjectCode() + "  " + item.getProjectName());
    }
}
